.class Lcom/brixd/niceapp/activity/BaseDetailActivity$33;
.super Ljava/lang/Object;
.source "BaseDetailActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/BaseDetailActivity;->generateHeader()Landroid/view/View;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/BaseDetailActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/BaseDetailActivity;

    .prologue
    .line 1425
    iput-object p1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$33;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .registers 6
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 1429
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$33;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    if-eqz v2, :cond_97

    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$33;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/UserModel;->getUid()I

    move-result v2

    iget-object v3, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$33;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v3, v3, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v3}, Lcom/brixd/niceapp/model/BaseAppModel;->getAuthorId()I

    move-result v3

    if-ne v2, v3, :cond_97

    .line 1430
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$33;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-virtual {v2}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->getContext()Landroid/content/Context;

    move-result-object v2

    const-string v3, "EnterSelfPersonalPageFromCommunityAuthor"

    invoke-static {v2, v3}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    .line 1435
    :goto_23
    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$33;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-virtual {v2}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->getActivity()Landroid/app/Activity;

    move-result-object v2

    const-class v3, Lcom/brixd/niceapp/userinfo/activity/UserInfoMainActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 1436
    .local v1, "intent":Landroid/content/Intent;
    new-instance v0, Lcom/brixd/niceapp/model/CommonUserModel;

    invoke-direct {v0}, Lcom/brixd/niceapp/model/CommonUserModel;-><init>()V

    .line 1437
    .local v0, "commonUserModel":Lcom/brixd/niceapp/model/CommonUserModel;
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$33;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/BaseAppModel;->getAuthorId()I

    move-result v2

    invoke-virtual {v0, v2}, Lcom/brixd/niceapp/model/CommonUserModel;->setUserId(I)V

    .line 1438
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$33;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/BaseAppModel;->getAuthorName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/brixd/niceapp/model/CommonUserModel;->setUserName(Ljava/lang/String;)V

    .line 1439
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$33;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/BaseAppModel;->getAuthorCareer()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/brixd/niceapp/model/CommonUserModel;->setUserIntro(Ljava/lang/String;)V

    .line 1440
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$33;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/BaseAppModel;->getAuthorAvatarUrl()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/brixd/niceapp/model/CommonUserModel;->setAvatarUrl(Ljava/lang/String;)V

    .line 1441
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$33;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    check-cast v2, Lcom/brixd/niceapp/community/model/CommunityAppModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/community/model/CommunityAppModel;->getAuthorBgColor()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/brixd/niceapp/model/CommonUserModel;->setBgColor(Ljava/lang/String;)V

    .line 1442
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$33;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    check-cast v2, Lcom/brixd/niceapp/community/model/CommunityAppModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/community/model/CommunityAppModel;->getAuthorGender()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/brixd/niceapp/model/CommonUserModel;->setGender(Ljava/lang/String;)V

    .line 1443
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$33;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    check-cast v2, Lcom/brixd/niceapp/community/model/CommunityAppModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/community/model/CommunityAppModel;->getAuthorIdentity()I

    move-result v2

    invoke-virtual {v0, v2}, Lcom/brixd/niceapp/model/CommonUserModel;->setUserIdentity(I)V

    .line 1445
    const-string v2, "UserModel"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 1446
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$33;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-virtual {v2}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->getActivity()Landroid/app/Activity;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    .line 1447
    return-void

    .line 1432
    .end local v0    # "commonUserModel":Lcom/brixd/niceapp/model/CommonUserModel;
    .end local v1    # "intent":Landroid/content/Intent;
    :cond_97
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$33;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-virtual {v2}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->getContext()Landroid/content/Context;

    move-result-object v2

    const-string v3, "EnterOthersPersonalPageFromCommunityAuthor"

    invoke-static {v2, v3}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_23
.end method
